package org.xb.coupling02;

class UserService {
    private DatabaseConnection databaseConnection;

    public UserService() {
        // 直接依赖于具体的 DatabaseConnection 类
        this.databaseConnection = new DatabaseConnection();
    }

    public void performDatabaseOperation() {
        databaseConnection.connect();
        // 执行数据库操作逻辑
        System.out.println("Performing database operation...");
    }
}
